package cn.wkj.mall.goods.pojo.entity;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class Sku implements Serializable {
    private Long id;// id,
    private Long spuId;// spu_id,
    private String name;// 名称,
    private String title;//  标题,
    private String description;//  简介,
    private BigDecimal price;//  售价,
    private BigDecimal oldPrice;//  原价,
    private Integer stock;//  库存,
    private Integer stockThreshold;// 库存预警阈值,
    private Integer saleCount;//  销量,
    private Integer commentCount;//  评论数,
    private Integer goodCommentCount;// 好评数,
    private Long attributeTemplateId;//  属性模板id,
    private Long albumId;// 相册id,
    private String spec;// 规格参数json(冗余),
    private Integer sort;// 自定义排序,
    private String createdUser;// 创建数据的用户,
    private String modifiedUser;// 最后修改数据的用户,
    private LocalDateTime gmtCreated;//  创建时间,
    private LocalDateTime gmtModified;// 最后修改时间
}
